package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Role;
import com.qdu.mapper.RoleMapper;
import com.qdu.service.RoleService;
@Service
public class RoleServiceImpl implements RoleService{
	@Autowired
	RoleMapper roleMapper;

	@Override
	public Role selectRoleById(int roleid) {
		return roleMapper.selectRoleById(roleid);
	}

	@Override
	public boolean addRole(Role role) {
		return roleMapper.addRole(role);
	}

	@Override
	public boolean modifyRole(Role role) {
		return roleMapper.modifyRole(role);
	}

	@Override
	public boolean deleteRoleById(int roleid) {
		return roleMapper.deleteRoleById(roleid);
	}

	@Override
	public List<Role> selectAllRole() {
		return roleMapper.selectAllRole();
	}
	
}
